@extends('admin.base')
	@section('content')
        <!-- Content Header (Page header) -->
        <section class="content-header">
			<h1>
				<i class="fa fa-calendar"></i>
				友情链接管理
			</h1>
			<ol class="breadcrumb">
				<li><a href="{{url('admin')}}"><i class="fa fa-dashboard"></i> 首页</a></li>
				<li><a href="#">链接信息管理</a></li>
				<li class="active">修改友情链接</li>
			</ol>
        </section>

        <!-- Main content -->
        <section class="content">
			<div class="row">
				<!-- right column -->
				<div class="col-md-12">
					<!-- Horizontal Form -->
					<div class="box box-primary">
						<div class="box-header with-border">
							<h3 class="box-title"><i class="fa fa-plus"></i> 修改链接信息</h3><h3 style="color:red;">{{isset($info)?$info:''}}</h3>
						</div><!-- /.box-header -->
						<!-- form start -->
						<form class="form-horizontal" method="post" action="{{url('admin/friendlink')}}/{{$list->id}}" enctype="multipart/form-data">
							<input type="hidden" name="_method" value="PUT" />
							<input type="hidden" name="_token" value="{{ csrf_token() }}" />
							<div class="box-body">
								
								<div class="form-group">
									<label for="inputEmail3" class="col-sm-2 control-label">当 前 Logo</label>
									<div class="col-sm-4">
										<img src="../../../{{$list->logo}}" width="70" class="col-sm-3">
									</div>
								</div>
								<div class="form-group">
									<label for="inputEmail3" class="col-sm-2 control-label">替 换 Logo</label>
									<div class="col-sm-4">
										<input type="file" class="form-control col-sm-1" name="logo" style="width:300px;">
									</div>
								</div>
								
								<div class="form-group">
									<label for="inputEmail3" class="col-sm-2 control-label">当 前 名 称</label>
									<div class="col-sm-4">
										<input type="text" class="form-control" name="lname" value="{{$list->lname}}">
									</div>
								</div>
								<div class="form-group">
									<label for="inputEmail3" class="col-sm-2 control-label">当 前 地 址</label>
									<div class="col-sm-4">
										<input type="text" class="form-control" name="url" value="{{$list->url}}">
									</div>
								</div>

								<div class="form-group">
									<label for="inputEmail3" class="col-sm-2 control-label">当 前 描 述</label>
									<div class="col-sm-4">
										<input type="text" class="form-control" name="title" value="{{$list->title}}">
									</div>
								</div>
								<div class="form-group">
									<label for="inputEmail3" class="col-sm-2 control-label">当 前 排 名</label>
									<div class="col-sm-4">
									 	<select name="linkorder">
											@for($i=0; $i<=20; $i++)
												 <option {{$list->linkorder}}=="{{$i}}" ? "selected": "" value="{{$i}}" >第{{$i}}位</option>
											@endfor
										</select> 
									
									</div>
								</div>
								<div class="box-footer">
									<div class="col-sm-offset-2 col-sm-1">
										<button type="submit" class="btn btn-primary">添加</button>
									</div>
									<div class="col-sm-1">
										<button type="reset"  class="btn btn-primary">重置</button>
									</div>
								</div><!-- /.box-footer -->
							</div>
						</form>
						<div class="row"><div class="col-sm-12">&nbsp;</div></div>
					</div><!-- /.box -->
				</div><!--/.col (right) -->
			</div>   <!-- /.row -->
        </section><!-- /.content -->
    @endsection